import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

export default new Router({
    routes: [
        {
            path: '/',
            redirect: '/login'
        },
        {
            path: '/',
            component: () => import('../components/common/Home.vue'),
            meta: { title: '自述文件' },
            children: [
           
                 /** =============== 首页 =============== */
                {
                    path: '/dashboard',
                    component: () => import( '../components/page/Dashboard.vue'),
                    meta: { title: '系统首页' }
                },

                /** =============== 综合运营支持平台 =============== */
                {
                    path: '/menuManger/index',
                    component: () => import( '../views/menuManger/index'),
                    meta: { title: '菜单管理'}
                },
                {
                    path: '/accountManger/index',
                    component: () => import( '../views/accountManger/index'),
                    meta: { title: '帐号管理'}
                },
                {
                    path: '/adminManger/index',
                    component: () => import( '../views/adminManger/index'),
                    meta: { title: '管理员管理'}
                },
                {
                    path: '/bannerManger/index',
                    component: () => import( '../views/bannerManger/index'),
                    meta: { title: 'banner管理'}
                },

                {
                    path: '/roleManger/index',
                    component: () => import( '../views/roleManger/index'),
                    meta: { title: '角色管理'}
                },

                {

                    path: '/roleManger/authorization',
                    component: () => import( '../views/roleManger/authorization'),
                    meta: { title: '角色授权'}
                },

                {
                    // 权限页面
                    path: '/permission',
                    component: () => import(/* webpackChunkName: "permission" */ '../components/page/Permission.vue'),
                    meta: { title: '权限测试', permission: true }
                },

               
                { 
                     //审批流程管理

                    path: '/approvalProcessManage/index',
                    component: () => import( '../views/approvalProcessManage/index'),
                    meta: { title: '审批流程管理'}
                },
                { 
                    //流程节点

                   path: '/approvalProcessManage/approvalNode',
                   component: () => import( '../views/approvalProcessManage/approval-node'),
                   meta: { title: '流程节点设置'}
               },

               {
                   //基础信息（关于我们）
                   path:'/aboutUsInfoManger/aboutUs',
                   component: () => import( '../views/aboutUsInfoManger/aboutUs'),
                   meta: { title: '基础信息管理',closeTag:true}

               },

               { 
                   //首页专区图片管理
                path: '/homeImgManger/index',
                component: () => import( '../views/homeImgManger/index'),
                meta: { title: '首页专区图片管理'}
               },

                
                /** =============== 审批流程：风控管理 =============== */
                {
                    path: '/publicProcessApproval/fkgl/index',
                    component: () => import( '../views/publicProcessApproval/index'),
                    meta: { title: '金融信息审查验证'}

                },
                {
                    path: '/publicProcessApproval/fkgl/auditDetails',
                    component: () => import( '../views/publicProcessApproval/audit-details'),
                    meta: { title: '风控管理-审核详情',closeTag:true}

                },

                  
                /** =============== 审批流程：资金管理 =============== */
                {
                    path: '/publicProcessApproval/zjgl/index',
                    component: () => import( '../views/publicProcessApproval/index'),
                    meta: { title: '资金信息审核验证'}

                },
                {
                    path: '/publicProcessApproval/zjgl/auditDetails',
                    component: () => import( '../views/publicProcessApproval/audit-details'),
                    meta: { title: '资金管理-审核详情',closeTag:true}

                },
                 /** =============== 资金方商户管理 =============== */
                 {
                    //资金方商户管理 - 资金方信息管理
                    path:'/zjfShManger/zjfInfoManger/index',
                    component: () => import( '../views//zjfShManger/zjfInfoManger/index'),
                    meta: { title: '资金方信息管理'}

                },

                {
                    //资金方商户管理 - 资金方商户信息审核
                    path:'/zjfShManger/zjfShInfoAudit/index',
                    component: () => import( '../views/publicInfoAudit/index'),
                    meta: { title: '资金方商户信息审核'}

                },

                 /** =============== 基地商户管理 =============== */

                {
                    path: '/baseInfoList/index',
                    component: () => import( '../views/baseInfoList/index'),
                    meta: { title: '基地信息管理'}
                },
                {
                    path: '/addOrEditBaseInfo/index',
                    component: () => import( '../views/baseInfoList/add-or-update'),
                    meta: { title: '新增或编辑基地信息',closeTag:true}
                },
                
                {
                    path: '/storeRealName/index',
                    component: () => import( '../views/storeRealName/index'),
                    meta: { title: '实名认证'}
                },

          
                {
                    path: '/baseInfoAudit/index',
                    component: () => import( '../views/baseInfoAudit/index'),
                    meta: { title: '基地信息审核'}
                },
                {
                    path: '/baseInfoAudit/audit',
                    component: () => import( '../views/baseInfoAudit/audit'),
                    meta: { title: '基地信息审核详情',closeTag:true}
                },

                {
                    //基地商户信息审核
                    path: '/commercialInfoAudit/index',
                    component: () => import( '../views/publicInfoAudit/index'),
                    meta: { title: '基地商户信息审核'}

                },

                
                { //审批流程 ：基地商户管理 助农金融贷款申请 
                    path: '/publicProcessApproval/jdshgl/index',
                    component: () => import( '../views/publicProcessApproval/index'),
                    meta: { title: '助农金融贷款申请'}

                },

                {
                    path: '/publicProcessApproval/jdshgl/auditDetails',
                    component: () => import( '../views/publicProcessApproval/audit-details'),
                    meta: { title: '助农金融贷款申请-审核详情',closeTag:true}

                },

                { // 助农金融申请：（ 打开网页 ）
                    path: '/helpFamiFinance/intrduce',
                    component: () => import( '../views/h5/helpFamiFinnaceIntrduce'),
                    meta: { title: '助农金融申请'}

                },

                {
                    //基地商户管理 - 商户信息管理
                    path:'/baseInfoManger/index',
                    component: () => import( '../views/baseInfoManger/index'),
                    meta: { title: '商户信息管理'}

                },

                {
                    //基地商户管理 - 商户信息管理
                    path:'/baseInfoManger/AddOrUp',
                    component: () => import( '../views/baseInfoManger/add-or-update'),
                    meta: { title: '新增或编辑商户信息',closeTag:true}

                },

                /** =============== 农资商户管理 =============== */
                {
                    //农资商户管理 - 商户信息管理
                    path:'/nzshManger/merchanInfoManger/index',
                    component: () => import( '../views/nzshManger/merchanInfoManger/index'),
                    meta: { title: '商户信息管理'}

                },

                {
                    //农资商户管理 - 商户信息管理
                    path:'/nzshManger/merchanInfoManger/AddOrUp',
                    component: () => import( '../views/nzshManger/merchanInfoManger/add-or-update'),
                    meta: { title: '新增或编辑商户信息',closeTag:true}

                },

                {
                    //农资商户管理 - 农资商户信息审核
                    path:'/nzshManger/merchanInfoAudit/index',
                    component: () => import( '../views/publicInfoAudit/index'),
                    meta: { title: '农资商户信息审核'}

                },

                /** =============== 各用户实名认证 =============== */

                {
                    //基地商户管理 - 实名认证查看
                    path:'/realNameCertification/jdshgl/index',
                    component: () => import( '../views/realNameCertification/index'),
                    meta: { title: '基地商户管理-实名认证查看'}

                },
                {
                    //农资商户管理 - 实名认证查看
                    path:'/realNameCertification/nzshgl/index',
                    component: () => import( '../views/realNameCertification/index'),
                    meta: { title: '农资商户管理-实名认证查看'}

                },
                {
                    //资金方商户管理 - 实名认证查看
                    path:'/realNameCertification/zjfshgl/index',
                    component: () => import( '../views/realNameCertification/index'),
                    meta: { title: '资金方商户管理-实名认证查看'}

                },

                {
                    //各实名认证-详情
                    path:'/realNameCertification/showDetails',
                    component: () => import( '../views/realNameCertification/show-details'),
                    meta: { title: '实名认证-详情'}

                },

                /** =============== 基地和农资 订单管理 =============== */
                
                {
                    //基地商户 - 农产品订单管理
                    path:'/userOrderManagement/jdshgl/index',
                    component: () => import( '../views/transactionManager/publicProductOrderManger/index'),
                    meta: { title: '基地商户管理-农产品订单管理'}
                    
                },
                
                {
                    //农产品订单管理-订单详情
                    path:'/userOrderManagement/jdshgl/ncp/order-details',
                    component: () => import( '../views/transactionManager/publicProductOrderManger/order-details'),
                    meta: { title: '农产品订单管理-订单详情'} 

                },

                {
                    //农资商户 - 农资产品订单管理
                    path:'/userOrderManagement/nzshgl/index',
                    component: () => import( '../views/transactionManager/publicProductOrderManger/index'),
                    meta: { title: '农资商户管理-农资产品订单管理'}

                },
                {
                    //农资产品订单管理-订单详情
                    path:'/userOrderManagement/nzshgl/nz/order-details',
                    component: () => import( '../views/transactionManager/publicProductOrderManger/order-details'),
                    meta: { title: '农资产品订单管理-订单详情'} 

                },

                 /** =============== 农产品采购方管理 =============== */

                {
                    //农产品采购方管理 - 采购方信息管理
                    path:'/iaFarmProductsPurchaseManger/purchaserInfoManger/index',
                    component: () => import( '../views/iaFarmProductsPurchaseManger/purchaserInfoManger/index'),
                    meta: { title: '采购方信息管理'}

                },

                {
                    //农产品采购方管理 - 农产品采购方信息审核
                    path:'/nzshManger/purchaserInfoAudit/index',
                    component: () => import( '../views/publicInfoAudit/index'),
                    meta: { title: '采购方信息审核'}

                },

                /** =============== 共享农田管理 =============== */

                {
                    //共享农田管理 - 共享农田管理
                    path:'/sharefarmland/index',
                    component: () => import( '../views/sharefarmlandManger/index'),
                    meta: { title: '共享农田管理'}

                },
                {
                    //共享农田管理 - 共享农田管理审核
                    path:'/sharefarmland/audit/index',
                    component: () => import( '../views/sharefarmlandManger/audit/index'),
                    meta: { title: '共享农田管理审核'}

                },
                
                /** =============== 投资订单管理 =============== */

                {
                    //投资订单管理 - 投资订单管理
                    path:'/iaInvestorder/index',
                    component: () => import( '../views/iaInvestorderManger/index'),
                    meta: { title: '投资订单管理'}

                },

                {
                    //投资订单管理 - 投资订单管理审核
                    path:'/iaInvestorder/audit/index',
                    component: () => import( '../views/iaInvestorderManger/audit/index'),
                    meta: { title: '投资订单管理审核'}

                },
                
                /** =============== 产权管理 =============== */

                {
                    //产权管理 - 产权管理
                    path:'/iapropertyright/index',
                    component: () => import( '../views/iapropertyrightManger/index'),
                    meta: { title: '产权管理'}

                },

                {
                    //产权管理 - 产权管理- 新增和修改
                    path:'/iapropertyright/addOrUp',
                    component: () => import( '../views/iapropertyrightManger/add-or-update'),
                    meta: { title: '竞价记录'}

                },


                {
                    //产权管理 - 产权管理- 竞价记录
                    path:'/iapropertyright/show',
                    component: () => import( '../views/iapropertyrightManger/show'),
                    meta: { title: '竞价记录'}

                },

                {
                    //产权管理 - 产权管理审核
                    path:'/iapropertyright/audit/index',
                    component: () => import( '../views/iapropertyrightManger/audit/index'),
                    meta: { title: '产权管理审核'}

                },
                {
                    //产权管理 - 产权管理审核 -审核页面
                    path:'/iapropertyright/audit/audit',
                    component: () => import( '../views/iapropertyrightManger/audit/audit'),
                    meta: { title: '审批'}

                },

                {
                    //产权管理 - 竞价权限审核
                    path:'/iapropertyright/forPermissionsAudit/index',
                    component: () => import( '../views/iapropertyrightManger/forPermissionsAudit/index'),
                    meta: { title: '竞价权限审核'}

                },
                {
                    //产权管理 - 竞价权限审核 -审核页面
                    path:'/iapropertyright/forPermissionsAudit/audit',
                    component: () => import( '../views/iapropertyrightManger/forPermissionsAudit/audit'),
                    meta: { title: '竞价权限审核'}

                },

                /** =============== 商品管理 =============== */

                {
                    //商品管理 - 农产品分类管理
                    path:'/goodsManger/goodsClassificationManger/ncp/index',
                    component: () => import( '../views/goodsManger/goodsClassificationManger/index'),
                    meta: { title: '农产品分类管理'} 

                },
                {
                    //商品管理 - 农资产品分类管理
                    path:'/goodsManger/goodsClassificationManger/nz/index',
                    component: () => import( '../views/goodsManger/goodsClassificationManger/index'),
                    meta: { title: '农资产品分类管理'} 

                },

                {
                    //商品管理 - 农产品管理
                    path:'/goodsManger/publicProductsManger/ncp/index',
                    component: () => import( '../views/goodsManger/publicProductsManger/index'),
                    meta: { title: '农产品管理'} 

                },
                {
                    //商品管理 - 农产品管理 - 生产追随详情
                    path:'/goodsManger/publicProductsManger/ncp/zuisuiDetails',
                    component: () => import( '../views/goodsManger/publicProductsManger/zuisuiDetails'),
                    meta: { title: '生产追随详情'} 

                },

                {
                    //商品管理 - 农资产品管理
                    path:'/goodsManger/publicProductsManger/nz/index',
                    component: () => import( '../views/goodsManger/publicProductsManger/index'),
                    meta: { title: '农资产品管理'} 

                },

                {
                    //商品管理 - 农产品管理 ( 新增或者编辑 页面)
                    path:'/goodsManger/publicProductsManger/ncp/addOrUp',
                    component: () => import( '../views/goodsManger/publicProductsManger/add-or-update'),
                    meta: { title: '农产品管理'} 

                },
                {
                    //商品管理 - 农资产品管理 ( 新增或者编辑 页面)
                    path:'/goodsManger/publicProductsManger/nz/addOrUp',
                    component: () => import( '../views/goodsManger/publicProductsManger/add-or-update'),
                    meta: { title: '农资产品管理'} 

                },

                {
                    //商品管理 - 农产品审核
                    path:'/goodsManger/publicProductsAudit/ncp/index',
                    component: () => import( '../views/goodsManger/publicProductsAudit/index'),
                    meta: { title: '农产品审核'} 

                },

                {
                    //商品管理 - 农资产品审核
                    path:'/goodsManger/publicProductsAudit/nz/index',
                    component: () => import( '../views/goodsManger/publicProductsAudit/index'),
                    meta: { title: '农资产品审核'} 

                },
                {
                    //商品管理 - 农产品管理 ( 审核 页面)
                    path:'/goodsManger/publicProductsAudit/ncp/audit',
                    component: () => import( '../views/goodsManger/publicProductsAudit/audit'),
                    meta: { title: '农产品管理'} 

                },
                {
                    //商品管理 - 农资产品管理 ( 新增或者编辑 页面)
                    path:'/goodsManger/publicProductsAudit/nz/audit',
                    component: () => import( '../views/goodsManger/publicProductsAudit/audit'),
                    meta: { title: '农资产品管理'} 

                },

                /** =============== 新闻管理 =============== */
                {
                    //新闻管理
                    path:'/newsManage/index',
                    component: () => import( '../views/newsManage/index'),
                    meta: { title: '新闻管理'} 

                },

                /** =============== 交易管理 =============== */
                {
                    //产权交易订单管理 
                    path:'/transactionManager/transactionOrderManager/index',
                    component: () => import( '../views/transactionManager/transactionOrderManager/index'),
                    meta: { title: '产权交易订单管理'} 

                },
                {
                    //产权交易订单管理-订单详情
                    path:'/transactionManager/transactionOrderManager/order-details',
                    component: () => import( '../views/transactionManager/transactionOrderManager/order-details'),
                    meta: { title: '产权交易订单管理-订单详情'} 

                },
                
                {
                    //农资产品订单管理 
                    path:'/transactionManager/publicProductOrderManger/nz/index',
                    component: () => import( '../views/transactionManager/publicProductOrderManger/index'),
                    meta: { title: '农资产品订单管理'} 

                },
                {
                    //农资产品订单管理-订单详情
                    path:'/transactionManager/publicProductOrderManger/nz/order-details',
                    component: () => import( '../views/transactionManager/publicProductOrderManger/order-details'),
                    meta: { title: '农资产品订单管理-订单详情'} 

                },

                {
                    //农产品订单管理 
                    path:'/transactionManager/publicProductOrderManger/ncp/index',
                    component: () => import( '../views/transactionManager/publicProductOrderManger/index'),
                    meta: { title: '农产品订单管理'} 

                },
                {
                    //农产品订单管理-订单详情
                    path:'/transactionManager/publicProductOrderManger/ncp/order-details',
                    component: () => import( '../views/transactionManager/publicProductOrderManger/order-details'),
                    meta: { title: '农产品订单管理-订单详情'} 

                },

                /** =============== 食品安全 =============== */
                {
                    //追溯监管 
                    path:'/foodSafetyManger/tracesTheRegulatory/index',
                    component: () => import( '../views/foodSafetyManger/tracesTheRegulatory/index'),
                    meta: { title: '追溯监管'} 

                },
                {
                    //追溯监管-详情 
                    path:'/foodSafetyManger/tracesTheRegulatory/details',
                    component: () => import( '../views/foodSafetyManger/tracesTheRegulatory/details'),
                    meta: { title: '追溯监管-详情'} 

                },
               



                 /** =============== 贷后管理 =============== */
                 { //贷后管理

                    path:'/postLoanManger/index',
                    component: () => import( '../views/postLoanManger/index'),
                    meta: { title: '贷后管理'} 

                 },
                 { //贷后管理详情

                    path:'/postLoanManger/details',
                    component: () => import( '../views/postLoanManger/postLoanMangerDetails'),
                    meta: { title: '贷后管理'} 

                 },

                 { //经营数据 管理

                    path:'/businessDataManger/index',
                    component: () => import( '../views/postLoanManger/index'),
                    meta: { title: '经营数据管理'} 

                 },
                 { //经营数据 管理

                    path:'/businessDataManger/details',
                    component: () => import( '../views/postLoanManger/businessDataMangerDetails'),
                    meta: { title: '经营数据管理'} 

                 },

                 /** =============== 大数据管理 =============== */
                
                {
                    //大数据管理 - 总览
                    path:'/bigdata/index',
                    component: () => import( '../views/bigdataManger/index'),
                    meta: { title: '总览'}

                }, 
                {
                    //大数据管理 - 总览
                    path:'/bigdata/index1',
                    component: () => import( '../views/bigdataManger/index1'),
                    meta: { title: '总览1'}

                }, 

                 /** =============== 基础维护 =============== */

                {
                    // 国际化组件
                    path: '/i18n',
                    component: () => import(/* webpackChunkName: "i18n" */ '../components/page/I18n.vue'),
                    meta: { title: '国际化' }
                },
                
                {
                    path: '/404',
                    component: () => import(/* webpackChunkName: "404" */ '../components/page/404.vue'),
                    meta: { title: '404' }
                },
                {
                    path: '/403',
                    component: () => import(/* webpackChunkName: "403" */ '../components/page/403.vue'),
                    meta: { title: '403' }
                },
                {
                    path: '/donate',
                    component: () => import(/* webpackChunkName: "donate" */ '../components/page/Donate.vue'),
                    meta: { title: '支持作者' }
                },
                
            ]
        },

        {
            path: '/login',
            component: () => import(/* webpackChunkName: "login" */ '../components/page/Login.vue'),
            meta: { title: '登录' }
        },
        {
            path: '*',
            redirect: '/404'
        }
    ]
});
